/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import cliente.Fase;
import javax.swing.JButton;

/**
 *
 * @author julio
 */
public class PFinFase extends javax.swing.JPanel {

    /**
     * Creates new form PFinFase
     */
    public PFinFase() {
        initComponents();
    }
    private Fase f;

    public Fase getF() {
        return f;
    }

    public void setF(Fase f) {
        this.f = f;
    }
    
    public JButton getMenu() {
        return Menu;
    }

    public JButton getSiguiente() {
        return Siguiente;
    }

    public JButton getRanking() {
        return ranking;
    }

    
    public void InitFinFase(int f,String p1, String p2, int s1, int s2, float t){
        this.jLabel7.setText("REMSUMEN FASE "+f);
        this.jLabel4.setText(p1);
        this.jLabel3.setText(p2);
        this.jLabel5.setText("GOLES : "+s1);
        this.jLabel6.setText("GOLES : "+s2);
        int h,m,s;
        h=(int)(t/3600);
        t-=(h*3600);
        m=(int)(t/60);
        t-=(m*60);
        s=(int)(t);
        this.jLabel2.setText("TIEMPO : "+h+":"+m+":"+s);
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        Menu = new javax.swing.JButton();
        Siguiente = new javax.swing.JButton();
        ranking = new javax.swing.JButton();

        setLayout(null);

        jLabel2.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel2.setText("TIEMPO : 01:01:00");
        add(jLabel2);
        jLabel2.setBounds(315, 373, 231, 71);

        jLabel3.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel3.setText("JUGADOR 2");
        add(jLabel3);
        jLabel3.setBounds(580, 140, 141, 71);

        jLabel4.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel4.setText("JUGADOR 1");
        add(jLabel4);
        jLabel4.setBounds(91, 141, 142, 71);

        jLabel5.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel5.setText("GOLES : 10");
        add(jLabel5);
        jLabel5.setBounds(88, 260, 142, 71);

        jLabel6.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel6.setText("GOLES : 10");
        add(jLabel6);
        jLabel6.setBounds(568, 260, 142, 71);

        jLabel7.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel7.setText("RESUMEN FASE X");
        add(jLabel7);
        jLabel7.setBounds(326, 41, 258, 71);

        Menu.setText("Menú Principal");
        Menu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuActionPerformed(evt);
            }
        });
        add(Menu);
        Menu.setBounds(325, 548, 136, 29);

        Siguiente.setText("Siguiente Fase");
        Siguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SiguienteActionPerformed(evt);
            }
        });
        add(Siguiente);
        Siguiente.setBounds(134, 548, 134, 29);

        ranking.setText("Ranking");
        ranking.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rankingActionPerformed(evt);
            }
        });
        add(ranking);
        ranking.setBounds(511, 548, 142, 29);
    }// </editor-fold>//GEN-END:initComponents

    private void MenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_MenuActionPerformed

    private void SiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SiguienteActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_SiguienteActionPerformed

    private void rankingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rankingActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_rankingActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Menu;
    private javax.swing.JButton Siguiente;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JButton ranking;
    // End of variables declaration//GEN-END:variables
}
